﻿using Volo.Abp.Domain;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.SqlSugarCore.Services;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Domain.Entities;
using SqlSugar;
using System.Threading.Tasks;

namespace Volo.Abp.SqlSugarCore.Repositories
{
    public interface ISqlSugarCoreRepository<TEntity> : IRepository<TEntity>
        where TEntity : class, IEntity
    {
        /// <summary>
        /// 获取sqlsugar查询
        /// </summary>
        /// <returns></returns>
        Task<ISugarQueryable<TEntity>> GetQueryableAsync();
    }

    public interface ISqlSugarCoreRepository<TEntity, TKey> : ISqlSugarCoreRepository<TEntity>, IRepository<TEntity, TKey>
        where TEntity : class, IEntity<TKey>
    {

    }
}
